package com.example.teesystem.common.utils;

/**
 * @author pxr
 * @data 2022/4/11 9:45
 */

public class IssueUtil {
    public static final int JUDGE = 0;//判断
    public static final int FILL_IN_THE_BLANKS = 1;//填空
    public static final int SINGLE_CHOICE = 2;//单选
    public static final int MULTIPLE_CHOICE = 3;//多选
    public static final int BRIEF_ANSWER = 4;//简答

    public static String getIssueTypeName(Integer type){
        if (type == JUDGE){
            return "Judge";
        }else if (type == FILL_IN_THE_BLANKS){
            return "FillInTheBlanks";
        }else if (type == SINGLE_CHOICE){
            return "SingleChoice";
        }else if (type == MULTIPLE_CHOICE){
            return "MultipleChoice";
        }else {
            return "BriefAnswer";
        }
    }

    public static String getIssueTypeChineseName(Integer type){
        if (type == JUDGE){
            return "判断";
        }else if (type == FILL_IN_THE_BLANKS){
            return "填空";
        }else if (type == SINGLE_CHOICE){
            return "单项选择";
        }else if (type == MULTIPLE_CHOICE){
            return "多项选择";
        }else {
            return "简答";
        }
    }
}
